<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>账号登录-<?php echo $cfg_webname; ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta content="telephone=no" name="format-detection" />
<link href="<?php echo $mcfg_basehost; ?>/m-css/m-index.css" rel="stylesheet" type="text/css">
<link href="<?php echo $mcfg_basehost; ?>/m-css/m-user-index.css" rel="stylesheet" type="text/css">
<script src="<?php echo $cfg_basehost; ?>/js/reg_new_j.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo $cfg_basehost; ?>/js/reg_new.js"></script>
<script type="text/javascript" src="<?php echo $mcfg_basehost; ?>/m-js/jquery.js"></script>
<script type="text/javascript">
var reMethod = "<?php echo ($cfg_soft_lang == 'utf-8') ? 'POST' : 'GET';?>",pwdmin = <?php echo $cfg_mb_pwdmin; ?>;
function changeAuthCode() {
	var num = 	new Date().getTime();
	var rand = Math.round(Math.random() * 10000);
	num = num + rand;
	$('#ver_code').css('visibility','visible');
	if ($("#vdimgck")[0]) {
		$("#vdimgck")[0].src = "/../apps/vdimgck.php?tag=" + num;
	}
	return false;	
}
function hideVc()
{
	$('#ver_code').css('visibility','hidden');
}
$(document).ready(function(){ 
	$("#passwordLevel").removeClass().addClass("rank r0");
	$("#vdcode").focus(function(){
	  var leftpos = $("#vdcode").position().left;
	  var toppos = $("#vdcode").position().top - 42;
	  $('#ver_code').css('left', leftpos+'px');
	  $('#ver_code').css('top', toppos+'px');
	  $('#ver_code').css('visibility','visible');
	});
	$("input[type='password']").click(function(){
	  hideVc()
	});
	$("#txtUsernamea").click(function(){
	  hideVc()
	});
	$("input[type='radio']").focus(function(){
	  hideVc()
	});
})
</script>
<script type="text/javascript">
function checkSubmit()
{
if(document.form2.txtUsername.value=='')
{
document.form2.txtUsername.focus();
alert("请输入账号");
return false;}
if(document.form2.pwd.value=='')
{
document.form2.pwd.focus();
alert("请输入密码");
return false;}
}
</script>
<style type="text/css">
html{height:100%;overflow:hidden;}
body{background-image:url(<?php echo $mcfg_basehost; ?>/m-images/bg-body.jpg);background-repeat:no-repeat;background-position:center center;background-size:cover;}
span.text-danger{color:rgb(255,0,0);padding-left:5px;margin-top:-10px;margin-bottom:15px;display:block;}
span.text-dark{color:rgb(78,117,4);padding-left:5px;margin-top:-10px;margin-bottom:15px;display:block;}
.m-m-yzm font{margin-top:-10px;margin-bottom:15px;padding-left:5px;display:block;}
.main.pt50{padding-top:50px;padding-bottom:50px;}
.login_box{margin-top:15px;}
.login_box .login_box_inputw input{padding:16px 12px;color:#333;width:100%;box-sizing:border-box;border-radius:5px;font-size:16px;margin-bottom:15px;line-height:18px;border:solid 1px #ddd;}
.login_box .submit{width:100%;background:#23b8ff;color:#fff;line-height:50px;height:50px;margin:10px 0;border-radius:25px;text-align:center;font-size:18px;}
.login_box .forgetpw{float:right;font-size:14px;color:#666;margin-top:15px;}
.login_box .forg{float:left;font-size:14px;color:#666;margin-top:15px;}
.yxw-yhzcxy{line-height:18px;font-size:12px;padding-top:10px;}
.jjweixinBtn-login{display:none;}
.yxw-wx-login{text-align:center;margin-top:30px;overflow:hidden;}
.yxw-wx-login img{width:60px;height:60px;margin:0 15px;}
.yxw-wx-login a{display:inline-block;}

/*重写H1标签*/
.user-h1{text-align:center;font-size:20px;margin:20px 0;}
#vdimgck{position:absolute;top:8px;right:2px;cursor:pointer;border-radius:0 5px 5px 0;}

/*切换*/
.aui-nav-content-box{padding:0 15px;}
.aui-nav-list-box{height:50px;text-align:center;}
.aui-nav-list-box li{position:relative;display:inline-block;line-height:50px;font-size:16px;padding:0 10px;}
.aui-nav-list-box a{display:block;color:#666;}
.aui-nav-list-box span{display:inline-block;height:50px;}
.aui-nav-list-box span:hover{color:#000;}
.aui-nav-list-box li.aui-current span{font-weight:700;font-size:16px;border-bottom:none !important;color:#333 !important;}
.aui-nav-list-box li.aui-current a{color:#333;}
.aui-nav-list-box li.aui-current a:before{width:30px;height:3px;content:"";background:#ff700a;display:inline-block;bottom:5px;left:50%;position:absolute;border-radius:2px;margin-left:-15px;}
.aui-nav-list-item{display:none;}

/*微信客服*/
#goodcover{display:none;position:fixed;top:0%;left:0%;width:100%;height:100%;background-color:black;z-index:1001;opacity:0.5;}
#code{width:300px;background-color:#fff;padding:20px 10px;position:fixed !important;display: none;top:50% !important;left:50%;margin-left:-150px;z-index:1002;border-radius:10px;margin-top:-219px;box-sizing:border-box;}
.goodtxt{text-align:left;position:relative;padding-bottom:30px;}
.goodtxt p{line-height:30px;font-size:16px;color:#333;padding-left:12px;}
#closebt{width:36px;height:36px;display:block;position:absolute;right:50%;bottom:0;background:#333 url(<?php echo $mcfg_basehost; ?>/m-images/ke-xx.png) center no-repeat;background-size:15px auto;margin-right:-18px;border-radius:50%;}
#ewmsrc{width:260px;display:block;margin:0 auto;padding-bottom:18px;}
</style>
</head>
<body>

<div class="wrapper" style="padding-top:20px;">
<h1 class="user-h1"><a href="<?php echo $mcfg_basehost; ?>"><img src="<?php echo $mcfg_basehost; ?>/m-images/logo.png" style="width:90px;height:100%;margin:0 auto;display:inline-block;"></a></h1>

<!-- tab切换 -->
<div class="aui-nav-content-box">

<div class="aui-nav-list-box">
<ul>
<li class="aui-current"><a href="javascript:;"><span>账号登录</span></a></li>
<li><a href="javascript:;"><span>注册账号</span></a></li>
</ul>
</div>

<div class="aui-nav-list-tab">

<!-- 账号登录 -->
<div class="aui-nav-list-item" style="display:block;">
<div class="login_box">
<form name='form2' method='POST' action='index_do.php' onSubmit="return checkSubmit();">
<input type="hidden" name="fmdo" value="login">
<input type="hidden" name="dopost" value="login">
<input type="hidden" name="keeptime" value="604800">
<input type="hidden" name="gourl" value="<?php if(!empty($_SERVER['HTTP_REFERER'])) echo $_SERVER['HTTP_REFERER'];?>">
<h2 style="font-size:16px;line-height:20px;padding-bottom:5px;display:none;">账号登录</h2>
<div class="login_box_inputw"><input type="text" name="userid" id="txtUsername" onKeyUp="value=value.replace(/[^0-9a-zA-Z^.]/g,'');" placeholder="请输入账号" maxlength="11"></div>
<div class="login_box_inputw"><input type="password" name="pwd" id="pwd" placeholder="请输入密码" maxlength="16"></div>
<div class="login_box_inputw"><button class="submit" type="submit">登录</button></div>
<div class="login_box_inputw clearfix"><a href="javascript:void(0)" style="float:right;cursor:pointer;" id="ClickMe" class="weixin-kekfu forgetpw">忘记密码</a></div>
</form>
<!-- 第三方账号登录 -->
<div class="yxw-wx-login">
<a href="<?php echo $mcfg_basehost; ?>/user/wx/weixin.php?tz=<?php if(!empty($_SERVER['HTTP_REFERER'])) echo urlencode($_SERVER['HTTP_REFERER']);?>"><img src="<?php echo $mcfg_basehost; ?>/m-images/wechat.png" class="jjweixinBtn-login"></a>
<a href="<?php echo $cfg_basehost; ?>/oauth/index_do.php?action=oauth&type=qq&tz=<?php if(!empty($_SERVER['HTTP_REFERER'])) echo urlencode($_SERVER['HTTP_REFERER']);?>"><img src="<?php echo $cfg_basehost; ?>/images/qqdenglu.png"></a>
</div>
<!-- 第三方账号登录 End -->
</div>
</div>
<!-- 账号登录 Eed -->


<!-- 注册账号 -->
<div class="aui-nav-list-item" style="display:none;">
<div class="login_box">
<form method="post" action="<?php echo $mcfg_basehost; ?>/user/reg_new.php" id="regUser" name="form1">
<input type="hidden" value="regbase" name="dopost"/>
<input type="hidden" value="1" name="step"/>
<input type="hidden" value="个人" name="mtype"/>
<input type="hidden" value="<?php echo $_GET['thirdid']; ?>" name="thirdid"/>
<div class="login_box_inputw"><input type="text" name="userid" id="txtUsernamea" onKeyUp="value=value.replace(/[^0-9a-zA-Z^.]/g,'');" placeholder="请设置账号，建议字母+数字组合" maxlength="11"></div>
<div id="_userid" class="m-m-yzm"></div>
<div class="login_box_inputw"><input type="password" name="userpwd" id="txtPassword" placeholder="请设置密码，建议数字+字母组合" onKeyUp="value=value.replace(/[^\w\.\/]/ig,'')" maxlength="16"></div>
<div id="_userpwdok" class="m-m-yzm"></div> 
<div class="login_box_inputw yxw-resetuserid" style="position:relative;">
<input type="text" id="vdcode" name="vdcode" placeholder="请输入验证码" autocomplete="off">
<img id="vdimgck" align="absmiddle" onClick="this.src=this.src+'?'" alt="点击更换" src="<?php echo $mcfg_basehost; ?>/apps/vdimgck.php"/>
</div>
<input type="hidden" name="gourl" value="<?php if(!empty($_SERVER['HTTP_REFERER'])) echo $_SERVER['HTTP_REFERER'];?>">
<div class="login_box_inputw"><button class="submit" type="submit">立即注册</button></div>
<!-- 用户协议 -->
<div class="yxw-yhzcxy">注册即代表您已同意<a href="<?php echo $mcfg_basehost; ?>/about/zhucexieyi/"><span style="color:#f30;">《用户协议》</span></a></div>
<!-- 用户协议 End -->
<!-- 第三方账号登录 -->
<div class="yxw-wx-login">
<a href="<?php echo $mcfg_basehost; ?>/user/wx/weixin.php?tz=<?php if(!empty($_SERVER['HTTP_REFERER'])) echo urlencode($_SERVER['HTTP_REFERER']);?>"><img src="<?php echo $mcfg_basehost; ?>/m-images/wechat.png" class="jjweixinBtn-login"></a>
<a href="<?php echo $cfg_basehost; ?>/oauth/index_do.php?action=oauth&type=qq&tz=<?php if(!empty($_SERVER['HTTP_REFERER'])) echo urlencode($_SERVER['HTTP_REFERER']);?>"><img src="<?php echo $cfg_basehost; ?>/images/qqdenglu.png"></a>
</div>
<!-- 第三方账号登录 End -->
</form>
</div>
</div>
<!-- 注册账号 End -->

</div>
</div>
<!-- Tab End -->


</div>


<!-- 微信客服 -->
<div id="goodcover"></div>
<div id="code">
<div class="goodtxt">
<p>密码找回</br>请加微信好友：<?php echo $cfg_wxkefu?></p>
<p style="color:#fb4a15;font-weight:700;">留言【xxxxx账号+找回密码】即可</p>
<?php 
$row = $dsql->GetOne("SELECT * FROM `biz_archives` WHERE id=53");
echo "<img id='ewmsrc' src='".mstrone($row['litpic'])."'>";
?> 
<a href="javascript:void(0)" id="closebt"></a>
</div>
</div>
<!-- 微信客服 End -->
<script type="text/javascript" src="<?php echo $mcfg_basehost; ?>/m-js/weixinn-kefu.js"></script>


<script> 
var wx= (function(){
return navigator.userAgent.toLowerCase().indexOf('micromessenger') !== -1
}
)();    
if(wx){
$(".jjweixinBtn-login").show();
}
</script>

<!-- tab切换 -->
<script type="text/javascript"> 
$(function(){
$('.aui-nav-list-box ul li').click(function(){
$(this).addClass('aui-current').siblings().removeClass('aui-current');
$('.aui-nav-list-tab>div:eq('+$(this).index()+')').show().siblings().hide();
})
});
</script>

<script type="text/javascript">
$("#zphone").click(function(){
if($("#txtUsernamea").val() == ""){
alert("请设置账号");return false;
}
if (!/^0-9a-zA-Z$/i.test($("#txtUsernamea").val())) {
alert("账号不对，请正确填写");return false;
}	
sendMobileCode($("#txtUsernamea"), $("#mobilecode"), $(this));
});
</script>

</body>
</html>